package com.bsj.power.common.def.entity.portalLoginLog;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * @author LiJiaXin
 * @version 1.0.0
 * @description PortalLoginLog
 * @time 2024/10/14 16:22
 */
@Data
@NoArgsConstructor
@TableName(value = "tab_portal_login_log")
public class PortalLoginLog {

    /**
     * 主键ID
     */
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 登录账号
     */
    @TableField(value = "login_id")
    private String loginId;

    /**
     * IP
     */
    @TableField(value = "ip")
    private String ip;

    /**
     * 入参
     */
    @TableField(value = "in_parameter")
    private String inParameter;

    /**
     * 出参
     */
    @TableField(value = "out_parameter")
    private String outParameter;

    /**
     * 是否成功 1成功 2失败
     */
    @TableField(value = "is_success")
    private Integer isSuccess;

    /**
     * 备注
     */
    @TableField(value = "remark")
    private String remark;

    /**
     * 登录时间
     */
    @TableField(value = "login_time")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private Date loginTime;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

}
